const { defineConfig } = require("@vue/cli-service");
const path = require('path')
module.exports = defineConfig({
  transpileDependencies: true,
  devServer: {
    port: 1238,
    open: true,
  },
  lintOnSave: false,
  chainWebpack: (config) => {
    // 给路径起别名
    config.resolve.alias
      .set("@", path.join(__dirname, "src"))
      .set("@a", path.join(__dirname, "src/api"))
      .set("@c", path.join(__dirname, "src/component"))
      .set("@r", path.join(__dirname, "src/router"))
      .set("@s", path.join(__dirname, "src/store"))
      .set("@u", path.join(__dirname, "src/utils"))
      .set("@v", path.join(__dirname, "src/views"));
  },
});
